package com.yurun.mapper;

import com.yurun.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CategoryMapper {
    // === insert ===
    int addCategory(Category category);
    // === delete ===
    int deleteCategoryById(Long id);
    // === update ===
    int updateCategory(Category category);
    // === select ===
    List<Category> getCategoryList();
}
